
package org.blog.helper;

public class Constants {
	/**
	 * spring mvc用来判断请求是否是ajax请求时, controller层加上headers注解时, 此表达式表示请求是ajax请求
	 */
	public static final String AJAX_EL = "X-Requested-With=XMLHttpRequest";

	/**
	 * spring mvc用来判断请求是否是ajax请求时, controller层加上headers注解时, 此表达式表示请求不是ajax请求
	 */
	public static final String NOT_AJAX_EL = "X-Requested-With!=XMLHttpRequest";

	public static final String AJAX_HEADER_NAME = "X-Requested-With";
	public static final String AJAX_HEADER_VALUE = "XMLHttpRequest";

	/** 每页显示数据为50条 */
	public static final int pages = 30;
	
	public static final String COOKIE_NAME="JSESSIONID";
	
	/**session 的key值*/
	public static final String SESSION_KEY="session_key_user";

}
